<script>
import useMouseMove from "./hooks/useMouseMove";

export default {
  setup() {
    const { data } = useMouseMove();
    // 将模板中要使用到的数据进行导出
    return {
      data,
    };
  },
};
</script>
<template>
  <div>Mouse Moved: x={{ data.x }}, y={{ data.y }}</div>
</template>
